<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>rw6</title>
</head>
<body>
<script type="text/javascript">

  var user = new Object();

  user.name = "John";

  user.surname = "Mike";

  user.name = "Peter";

  delete user.name

</script>
<script type="text/javascript">

    var fruit = {

        apple: 20,

        pear: 20,

        peach: 10

    };

    alert(fruit.apple+fruit.pear+fruit.peach);

</script>
</body>
</html>